package org.dromara.system.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.system.domain.AppWarehouseOut;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 出库单视图对象 app_warehouse_out
 *
 * @author Lion Li
 * @date 2025-10-29
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AppWarehouseOut.class)
public class AppWarehouseOutVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 出库单号（自动生成）
     */
    @ExcelProperty(value = "出库单号", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "自=动生成")
    private String outOrderNo;

    /**
     * 公司名称（自动带入）
     */
    @ExcelProperty(value = "公司名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "自=动带入")
    private String companyName;

    /**
     * 仓库名称（自动带入）
     */
    @ExcelProperty(value = "仓库名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "自=动带入")
    private String warehouseName;

    /**
     * 货物类型
     */
    @ExcelProperty(value = "货物类型")
    private String goodsType;

    /**
     * 货物重量(kg)
     */
    @ExcelProperty(value = "货物重量(kg)")
    private Long goodsWeight;

    /**
     * 承运人
     */
    @ExcelProperty(value = "承运人")
    private String carrierName;

    /**
     * 承运人联系方式
     */
    @ExcelProperty(value = "承运人联系方式")
    private String carrierContact;

    /**
     * 承运车牌号
     */
    @ExcelProperty(value = "承运车牌号")
    private String carrierPlateNo;

    /**
     * 承运车辆
     */
    @ExcelProperty(value = "承运车辆")
    private String carrierVehicle;

    /**
     * 承运费用
     */
    @ExcelProperty(value = "承运费用")
    private Long carrierCost;

    /**
     * 运输状态（0:未运输 1:运输中 2:已送达）
     */
    @ExcelProperty(value = "运输状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:未运输,1=:运输中,2=:已送达")
    private Long transportStatus;

    /**
     * 出库人
     */
    @ExcelProperty(value = "出库人")
    private String shipper;

    /**
     * 出库日期
     */
    @ExcelProperty(value = "出库日期")
    private Date shipDate;

    /**
     * 退货标志 0没退 1退了
     */
    private Integer salesReturn;


    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 出库状态 0待出库 1已出库
     */
    private Integer warehouseOutFlag;

}
